package BaseDatos.DAO;


/**
 * Abstract class DAO Factory
 * @author Angel Lopez
 */
public abstract class DAOFactory {
    
  public abstract OcaDAO getOcaDAO();
  
  public static DAOFactory getDAOFactory(int whichFactory) {
  
        switch (whichFactory) {
                  
            case Constants.MYSQL: 
                return new MySQLDAOFactory();
                
            case Constants.ORACLE: 
                return null;//new OracleDAOFactory();
                
            default: 
                return null;
        }
    }
}
